<?php if(!defined('PATH_HD'))exit;
$db->exe("DROP TABLE IF EXISTS `ec_config`");
$db->exe("CREATE TABLE `ec_config` (
  `cid` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置项的主键',
  `title` varchar(45) NOT NULL DEFAULT '' COMMENT '配置的标题（视图使用）',
  `name` varchar(45) NOT NULL DEFAULT '' COMMENT '配置项值（修改config.php配置文件中配置项名称)',
  `value` varchar(45) NOT NULL DEFAULT '' COMMENT '配置项值（修改config.php配置文件中配置项值)',
  `message` varchar(100) NOT NULL DEFAULT '' COMMENT '配置描述（视图使用）',
  `ctid` smallint(6) NOT NULL,
  PRIMARY KEY (`cid`),
  KEY `fk_ec_config_ec_config_type1_idx` (`ctid`)
) ENGINE=MyISAM AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COMMENT='网站配置表'");
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (1,"ICP备案","ICP","haoyizz@gmail.com","ICP备案",0)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (2,"模板风格","style","metinfo","模板风格",0)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (3,"网站名称","webname","EasyCMS","网站名称",0)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (4,"站长邮箱","email","haoyizz@gmail.com","站长邮箱",0)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (5,"网站开关","flag",1,"网站开关",0)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (8,"验证码高度","CODE_HEIGHT",30,"验证码高度",2)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (9,"验证码宽度","CODE_WIDTH",100,"验证码宽度",2)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (10,"验证码背景颜色","CODE_BG_COLOR","#CCE8CF","验证码背景颜色",2)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (11,"验证码长度","CODE_LEN",4,"验证码长度",2)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (12,"验证码字体大小","CODE_FONT_SIZE",12,"验证码字体大小",2)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (13,"验证码字体颜色","CODE_FONT_COLOR","","验证码字体颜色",2)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (14,"水印开关","WATER_ON",1,"水印开关",1)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (16,"水印图像","WATER_IMG",".hd/data/water/water.png","水印图像",1)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (17,"水印位置","WATER_POS",9,"水印位置",1)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (18,"水印透明度","WATER_PCT",60,"水印透明度",1)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (19,"水印压缩质量","WATER_QUALITY",80,"水印压缩质量",1)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (20,"水印文字","WATER_TEXT","WWW.HOUDUNWANG.COM","水印文字",1)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (21,"水印文字颜色","WATER_TEXT_COLOR","#f00f00","水印文字颜色",1)');
$db->exe('REPLACE INTO `ec_config`(`cid`,`title`,`name`,`value`,`message`,`ctid`)VALUES (22,"水印文字大小","WATER_TEXT_SIZE",14,"水印文字大小",1)');

?>